apkinser: $(wildcard *.go)
	echo $^
	cd $(GOPATH)/src
	CGO_ENABLED=0 GOARCH=arm GOARM=7 go install git.oschina.net/zengsai/apkinser
	CGO_ENABLED=0 GOARCH=arm GOARM=7 go install git.oschina.net/zengsai/apkinser/apkinser

install:
	adb remount
	adb shell rm /sdcard/system/apkinser/mim.apk
	adb push ~/mygo/bin/linux_arm/apkinser system/bin/ 
	
run:
	adb shell apkinser

test: apkinser install run

.PHONY: apkinser install run test
